package com.aabte.springbootopenfeigndemo.consumer;

import com.aabte.springbootopenfeigndemo.account.api.AccountApi;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.encoding.FeignAcceptGzipEncodingAutoConfiguration;
import org.springframework.cloud.openfeign.encoding.FeignContentGzipEncodingAutoConfiguration;
import org.springframework.cloud.openfeign.hateoas.FeignHalAutoConfiguration;
import org.springframework.cloud.openfeign.loadbalancer.FeignLoadBalancerAutoConfiguration;
import org.springframework.cloud.openfeign.ribbon.FeignRibbonClientAutoConfiguration;

@EnableFeignClients(basePackageClasses = AccountApi.class)
@SpringBootApplication(exclude = {
        FeignRibbonClientAutoConfiguration.class,
        FeignHalAutoConfiguration.class,
        FeignAcceptGzipEncodingAutoConfiguration.class,
        FeignContentGzipEncodingAutoConfiguration.class,
        FeignLoadBalancerAutoConfiguration.class
})
public class ConsumerApplication {
    public static void main(String[] args) {
        SpringApplication.run(ConsumerApplication.class, args);
    }
}
